package com.cmc6.minio.model.entity;

import io.minio.messages.DeleteError;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@Document(indexName = "cmc6-admin-file-error")
public class EsFileDeleteErrorDO extends DeleteError {

    @Id
    @ApiModelProperty(value = "es 主键 id")
    private String _id;

    @Field(type = FieldType.Date)
    @ApiModelProperty(value = "创建时间")
    private Date createTime = new Date();

}
